#pragma once

#include "../umlmodel_global.h"

#include "Event.h"

namespace uml {

/// <summary>
/// MessageEvent
/// A MessageEvent specifies the receipt by an object of either an Operation call or
/// a Signal instance.
/// </summary>
class UMLMODEL_EXPORT MessageEvent : public Event {

public: // Constructors and destructors
    explicit MessageEvent(const QString& umlType="uml::MessageEvent");

public: // JsonSerializable override
    void fromJson(const QJsonObject& json, QStringList& errorList) override;
    void toJson(QJsonObject& json) override;

};

} // namespace uml
